package com.atguigu.crowd.funding.service.api;

import com.atguigu.crowd.funding.entity.Role;
import com.github.pagehelper.PageInfo;

import java.util.List;

/**
 * @author hftang
 * @date 2019-10-28 10:03
 * @desc
 */
public interface RoleService {

    PageInfo<Role> queryForKeywordWithPage(Integer pageNum, Integer pageSize, String keyword);

    List<Role> queryRoleByIds(List<Integer> roleIds);

    void batchRemove(List<Integer> roleIds);

    void saveRole(String role);

    void updateRole(Role role);

    List<Role> getAssignedRoleList(Integer adminId);

    List<Role> getUnAssignedRoleList(Integer adminId);

    void updateRelationship(Integer adminId, List<Integer> roleIdList);
}
